<<<<<<< HEAD
import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import center from '@/pages/center'
import userEdit from '@/pages/userEdit'
import customeregister from '@/pages/customeregister'
import custome from '@/pages/custome'
import customeBind from '@/pages/customeBind'
import productEdit from '@/pages/productEdit'
import message from '@/pages/message'
import messagedetail from '@/pages/messagedetail'
import standardInfo from '@/pages/standardInfo'
import addContract from '@/pages/addContract'
import addProduct1 from '@/pages/addProduct1'
import addProduct2 from '@/pages/addProduct2'
import addProduct3 from '@/pages/addProduct3'
import addProduct4 from '@/pages/addProduct4'
import addStandard from '@/pages/addStandard'
import standardList from '@/pages/standardList'
import productList from '@/pages/productList'
import addSampleBill from '@/pages/addSampleBill'
import addSampleBill2 from '@/pages/addSampleBill2'
import addSampleBill3 from '@/pages/addSampleBill3'
import addSampleBill4 from '@/pages/addSampleBill4'
import addSampleBill5 from '@/pages/addSampleBill5'
import sampleList from '@/pages/sampleList'
import addSample from '@/pages/addSample'
import standeadSecList from '@/pages/standeadSecList'
import addSecStadard from '@/pages/addSecStadard'
import standardDetail from '@/pages/standardDetail'
import addSecStandard from '@/pages/addSecStandard'
import InspectionItems from '@/pages/InspectionItems'
import byStandard from '@/pages/byStandard'
import byProject from '@/pages/byProject'

Vue.use(Router)
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)
}
export default new Router({
  routes: [
    { path: '/', name: 'index', component: index },
    {path: '/center',name: 'center',component: center},
    {path: '/userEdit',name: 'userEdit',component: userEdit},
    {path: '/customeregister',name: 'customeregister',component: customeregister},
    {path: '/custome',name: 'custome',component: custome},
    {path: '/customeBind',name: 'customeBind',component: customeBind},
    {path: '/productEdit',name: 'productEdit',component: productEdit},
    {path: '/message',name: 'message',component: message},
    {path: '/messagedetail',name: 'messagedetail',component: messagedetail},
    {path: '/standardInfo',name: 'standardInfo',component: standardInfo},
    {path: '/addContract',name: 'addContract',component: addContract},
    {path: '/addProduct1',name: 'addProduct1',component: addProduct1},
    {path: '/addProduct2',name: 'addProduct2',component: addProduct2},
    {path: '/addProduct3',name: 'addProduct3',component: addProduct3},
    {path: '/addProduct4',name: 'addProduct4',component: addProduct4},
    {path: '/addStandard',name: 'addStandard',component: addStandard},
    {path: '/standardList',name: 'standardList',component: standardList},
    {path: '/productList',name: 'productList',component: productList},
    {path: '/addSampleBill',name: 'addSampleBill',component: addSampleBill},
    {path: '/addSampleBill2',name: 'addSampleBill',component: addSampleBill2},
    {path: '/addSampleBill3',name: 'addSampleBill',component: addSampleBill3},
    {path: '/addSampleBill4',name: 'addSampleBill',component: addSampleBill4},
    {path: '/addSampleBill5',name: 'addSampleBill',component: addSampleBill5},
    {path: '/sampleList',name: 'sampleList',component: sampleList},
    {path: '/addSample',name: 'addSample',component: addSample},
    {path: '/standeadSecList',name: 'standeadSecList',component: standeadSecList},
    {path: '/addSecStadard',name: 'addSecStadard',component: addSecStadard},
    {path: '/standardDetail',name: 'standardDetail',component: standardDetail},
    {path: '/addSecStandard',name: 'addSecStandard',component: addSecStandard},
    {path: '/InspectionItems',name: 'InspectionItems',component: InspectionItems},
    {path: '/byStandard',name: 'byStandard',component: byStandard},
    {path: '/byProject',name: 'byProject',component: byProject}
  ]
})
=======
import Vue from "vue";
import Router from "vue-router";
import index from "@/pages/index";
import center from "@/pages/center";
import userEdit from "@/pages/userEdit";
import customeregister from "@/pages/customeregister";
import custome from "@/pages/custome";
import customeBind from "@/pages/customeBind";
import productEdit from "@/pages/productEdit";
import message from "@/pages/message";
import messagedetail from "@/pages/messagedetail";
import standardInfo from "@/pages/standardInfo";
import addContract from "@/pages/addContract";
import addProduct1 from "@/pages/addProduct1";
import addProduct2 from "@/pages/addProduct2";
import addProduct3 from "@/pages/addProduct3";
import addProduct4 from "@/pages/addProduct4";
import addStandard from "@/pages/addStandard";
import standardList from "@/pages/standardList";
import productList from "@/pages/productList";
import addSampleBill from "@/pages/addSampleBill";
import addSampleBill2 from "@/pages/addSampleBill2";
import addSampleBill3 from "@/pages/addSampleBill3";
import addSampleBill4 from "@/pages/addSampleBill4";
import addSampleBill5 from "@/pages/addSampleBill5";
import sampleList from "@/pages/sampleList";
import addSample from "@/pages/addSample";
import standeadSecList from "@/pages/standeadSecList";
import addSecStadard from "@/pages/addSecStadard";
import standardDetail from "@/pages/standardDetail";
import addSecStandard from "@/pages/addSecStandard";
import InspectionItems from "@/pages/InspectionItems";
import byStandard from "@/pages/byStandard";
import byProject from "@/pages/byProject";
import calculator from "@/components/calculator";
import projectList from "@/pages/projectList";

Vue.use(Router);
const routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error => error);
};
export default new Router({
  routes: [
    { path: "/", name: "index", component: index },
    { path: "/center", name: "center", component: center },
    { path: "/userEdit", name: "userEdit", component: userEdit },
    {
      path: "/customeregister",
      name: "customeregister",
      component: customeregister
    },
    { path: "/custome", name: "custome", component: custome },
    { path: "/customeBind", name: "customeBind", component: customeBind },
    { path: "/productEdit", name: "productEdit", component: productEdit },
    { path: "/message", name: "message", component: message },
    { path: "/messagedetail", name: "messagedetail", component: messagedetail },
    { path: "/standardInfo", name: "standardInfo", component: standardInfo },
    { path: "/addContract", name: "addContract", component: addContract },
    { path: "/addProduct1", name: "addProduct1", component: addProduct1 },
    { path: "/addProduct2", name: "addProduct2", component: addProduct2 },
    { path: "/addProduct3", name: "addProduct3", component: addProduct3 },
    { path: "/addProduct4", name: "addProduct4", component: addProduct4 },
    { path: "/addStandard", name: "addStandard", component: addStandard },
    { path: "/standardList", name: "standardList", component: standardList },
    { path: "/productList", name: "productList", component: productList },
    { path: "/addSampleBill", name: "addSampleBill", component: addSampleBill },
    {
      path: "/addSampleBill2",
      name: "addSampleBill",
      component: addSampleBill2
    },
    {
      path: "/addSampleBill3",
      name: "addSampleBill",
      component: addSampleBill3
    },
    {
      path: "/addSampleBill4",
      name: "addSampleBill",
      component: addSampleBill4
    },
    {
      path: "/addSampleBill5",
      name: "addSampleBill",
      component: addSampleBill5
    },
    { path: "/sampleList", name: "sampleList", component: sampleList },
    { path: "/addSample", name: "addSample", component: addSample },
    {
      path: "/standeadSecList",
      name: "standeadSecList",
      component: standeadSecList
    },
    { path: "/addSecStadard", name: "addSecStadard", component: addSecStadard },
    {
      path: "/standardDetail",
      name: "standardDetail",
      component: standardDetail
    },
    {
      path: "/addSecStandard",
      name: "addSecStandard",
      component: addSecStandard
    },
    {
      path: "/InspectionItems",
      name: "InspectionItems",
      component: InspectionItems
    },
    { path: "/byStandard", name: "byStandard", component: byStandard },
    { path: "/byProject", name: "byProject", component: byProject },
    { path: "/calculator", name: "calculator", component: calculator },
    { path: "/projectList", name: "projectList", component: projectList }
  ]
});
>>>>>>> zcm
